// dnSpy decompiler from Assembly-CSharp.dll class: Waypoint
using System;
using UnityEngine;

[Serializable]
public class Waypoint : ScriptableObject
{
	public Waypoint(Transform transform)
	{
		this.PopulateFrom(transform);
	}

	public virtual void PopulateFrom(Transform transform)
	{
		this.position = transform.position;
		this.localScale = transform.localScale;
		this.localRotation = transform.localRotation;
	}

	public virtual void CopyTo(Transform transform)
	{
		transform.position = this.position;
		transform.localScale = this.localScale;
		transform.localRotation = this.localRotation;
	}

	public override bool Equals(object obj)
	{
		Waypoint waypoint = (Waypoint)obj;
		return null != waypoint && this.position == waypoint.position && this.localScale == waypoint.localScale && this.localRotation == waypoint.localRotation;
	}

	public override int GetHashCode()
	{
		return this.position.GetHashCode() ^ this.localScale.GetHashCode() ^ this.localRotation.GetHashCode();
	}

	public Vector3 position;

	public Vector3 localScale;

	public Quaternion localRotation;
}
